package com.ninth_group.mapper;

import com.ninth_group.po.City;
import com.ninth_group.vo.CityVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface CityMapper {
    CityMapper INSTANCE = Mappers.getMapper(CityMapper.class);

    /**
     * 将City对象转换为CityVO对象
     * @param city city实体类
     * @return CityVO对象
     */
    CityVO toVo(City city);
}
